package sctu.edu.java.year2016.team05.xiongyihui.day20160523.chapter6_2;

/**
 * Created by 熊怡惠 on 2016/5/22.
 * 利用for循环和if条件句实现去除空格。
 */
public class two {
    public static void main(String[] args) {
        String text = "my name is xiongxiong";
        System.out.println("原字符串是：");
        System.out.println(text);
        System.out.println("my name is xiongxiong 去除空格为"+text.replace(" ",""));

    }
}

